﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNet.NH.Models;
using Iesi.Collections.Generic;

namespace PerformanceSystem2.Models
{
    /// <summary>
    /// 员工
    /// </summary>
    public class UserInfo : EntityBase
    {
        /// <summary>
        /// 工号
        /// </summary>
        public virtual string No { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public virtual string Password { get; set; }

        /// <summary>
        /// 上级
        /// </summary>
        public virtual UserInfo Super { get; set; }

        /// <summary>
        /// 岗位，职称
        /// </summary>
        public virtual string JobTitle { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public virtual Status Status { get; set; }

        /// <summary>
        /// 考评选项
        /// </summary>
        public virtual OrderedSet<Appraise> Appraises { get; set; }

        /// <summary>
        /// 考评历史
        /// </summary>
        public virtual Iesi.Collections.Generic.ISet<AppraiseHistory> AppraiseHistorys { get; set; }
    }
}